const Tools = {
    exportJsonFile(name, data) {
        let blob = new Blob([data]);
        var link = document.createElement("a")
        link.href = URL.createObjectURL(blob)   //出8u昂见一个URL对象绑定到a标签的href
        link.download = name    // 设置下载的默认文件名
        link.click()
    }
}

export default Tools